package com.xishu.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * 每个会话，只有一个锁定菜的列表
 * 每个会话，只有一个锁定钱的列表
 *
 */
public class LockOrderCashOrOrderItem implements Serializable {
    private static final long serialVersionUID = -8395610154677481745L;

    @ApiModelProperty(value = "哪一个会话锁定的")
    public String lockSessionId;

    @ApiModelProperty(value = "需要锁定金额")
    public Boolean lockCash;

    @ApiModelProperty(value = "锁定的金额")
    public Double cash;

    @ApiModelProperty(value = "锁定了哪些菜")
    public List<Long> orderItemIdList;

    @ApiModelProperty(value = "锁定时间")
    public Long lockTime;

    @ApiModelProperty(value = "是否已支付")
    public Boolean payed;

    @ApiModelProperty(value = "支付方式")
    public int payType;

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public Boolean getPayed() {
        return payed;
    }

    public void setPayed(Boolean payed) {
        this.payed = payed;
    }

    public Boolean getLockCash() {
        return lockCash;
    }

    public void setLockCash(Boolean lockCash) {
        this.lockCash = lockCash;
    }

    public Long getLockTime() {
        return lockTime;
    }

    public void setLockTime(Long lockTime) {
        this.lockTime = lockTime;
    }

    public String getLockSessionId() {
        return lockSessionId;
    }

    public void setLockSessionId(String lockSessionId) {
        this.lockSessionId = lockSessionId;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public List<Long> getOrderItemIdList() {
        return orderItemIdList;
    }

    public void setOrderItemIdList(List<Long> orderItemIdList) {
        this.orderItemIdList = orderItemIdList;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("LockOrderCashOrOrderItem{");
        sb.append("lockSessionId='").append(lockSessionId).append('\'');
        sb.append(", lockCash=").append(lockCash);
        sb.append(", cash=").append(cash);
        sb.append(", orderItemIdList=").append(orderItemIdList);
        sb.append(", lockTime=").append(lockTime);
        sb.append('}');
        return sb.toString();
    }
}
